import { http } from "@/utils/http";
import type { HttpResult } from "@/utils/http/types";

export function getUserList(params?: object) {
  return http.request<HttpResult>("get", "/esflow/auditor/user/list", {
    params: params
  });
}

export function getDeptList(params?: object) {
  return http.request<HttpResult>("get", "/esflow/auditor/dept/list", {
    params: params
  });
}

export function getUserById(id: string) {
  return http.request<HttpResult>("get", `/esflow/auditor/user/${id}`);
}

export function getDeptById(id: string) {
  return http.request<HttpResult>("get", `/esflow/auditor/dept/${id}`);
}
